import dva from 'dva';

// 1. Initialize
import { createBrowserHistory as createHistory} from 'history'
const app = dva({
  history: createHistory(),
});

// 2. Plugins
// app.use({});

// 3. Model
// app.model(require('./models/product').default);
require('./models').default.forEach(key => app.model(key.default))


// 4. Router
app.router(require('./router').default);

// 5. Start
app.start('#root');
